package com.hn658.user.core.service;

import java.util.List;

import com.hn658.user.common.entity.DepartmentEO;

/**
 * 
 * 
*******************************************
* <b style="font-family:微软雅黑"><small>Description:组织机构查询业务逻辑</small></b>   </br>
* <b style="font-family:微软雅黑"><small>HISTORY</small></b></br>
* <b style="font-family:微软雅黑"><small> ID      DATE    PERSON     REASON</small></b><br>
********************************************
* <div style="font-family:微软雅黑,font-size:70%"> 
* 1 2015-11-11 王晓    新增
* </div>  
********************************************
 */
public interface IDepartmentService {
	
	
	/**
	 * 查询所有部门
	 * @return
	 */
	public List<DepartmentEO> getDirectChildrenDepts(String parentId,Boolean isDeleted) ;
	
	/**
	 * 通过id获取部门对象
	 * @param Id
	 * @return
	 */
	public DepartmentEO getDepartment(Long Id);
	
	/**
	 * 新增部门
	 * @param departmentEO
	 */
	public void addDepartment(DepartmentEO departmentEO);
	
	/**
	 * 修改部门信息
	 * @param departmentEO
	 */
	public void modifyDepartment(DepartmentEO departmentEO);
	
	/**
	 * 软删除部门（不启用）
	 * @param id
	 */
	public void deleteDepartment(Long id);

	
}
